<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #spinner {
            margin: 200px;
            border: 1px solid #ddd;
            padding: 90px 0;
            background-color: bisque;
        }
        .spainner{
            width: 50px;
            height: 50px;
            border: 3px solid #ddd;
            margin: auto;
            /* 巧用border color */
            border-left-color: #fff;
            border-radius: 50%;
            animation: loading 1.2s linear infinite;
            -webkit-animation: loading 1.2s linear infinite;
        }
        @keyframes loading{
            from{
                transform: rotate(0deg);
            }
            to{
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <div id="spinner">
        <div class="spainner"></div>
    </div>
</body>
</html>